var p = "";
var pathName = self.window.location.pathname;
var path = pathName.split("/");
if (path.length>1) {
	if (pathName.charAt(0) != "/") {
		p = "/"+path[0] + "/";
	} else {
		p = "/"+path[1] + "/";
	}
}

//Menu Up to level
var UP_ONE_LEVEL_IMG ="images/menu/upOneLevel.gif"
	
// Images for Toolbar
 var NORMAL_INSERT_IMG = p + "images/icon/toolbar/nAdd.gif";
 var INSERT_IMG_ON_OVER = p + "images/icon/toolbar/oAdd.gif";

 var NORMAL_DELETE_IMG = p + "images/icon/toolbar/nDelete.gif";
 var DELETE_IMG_ON_OVER = p + "images/icon/toolbar/oDelete.gif";

 var NORMAL_ENTQUERY_IMG = p + "images/icon/toolbar/nEnterquery.gif";
 var ENTQUERY_IMG_ON_OVER = p + "images/icon/toolbar/oEnterquery.gif";

 var NORMAL_QUERY_IMG = p + "images/icon/toolbar/nQuery.gif";
 var QUERY_IMG_ON_OVER = p + "images/icon/toolbar/oQuery.gif";

 var NORMAL_EXIT_IMG = p + "images/icon/toolbar/nExit.gif";
 var EXIT_IMG_ON_OVER = p + "images/icon/toolbar/oExit.gif";

 var NORMAL_LANG_IMG = p + "images/icon/toolbar/nThai.gif";
 var LANG_IMG_ON_OVER = p + "images/icon/toolbar/oThai.gif";

 var NORMAL_SAVE_IMG = p + "images/icon/toolbar/nSave.gif";
 var SAVE_IMG_ON_OVER = p + "images/icon/toolbar/oSave.gif";

 var NORMAL_CLEAR_IMG = p + "images/icon/toolbar/nClear.gif";
 var CLEAR_IMG_ON_OVER = p + "images/icon/toolbar/oClear.gif";
 
 var NORMAL_MOVETO_IMG = p + "images/icon/toolbar/nCopy.gif";
 var MOVETO_IMG_ON_OVER = p + "images/icon/toolbar/oCopy.gif";
 
 var  NORMAL_BACKTOMENU_IMG = p + "images/icon/toolbar/nBackToMenu.gif";
 var  BACKTOMENU_IMG_ON_OVER = p + "images/icon/toolbar/oBackToMenu.gif";
 
 var  NORMAL_HELP_IMG = p + "images/icon/toolbar/nHelp.gif";
 var  HELP_IMG_ON_OVER = p + "images/icon/toolbar/oHelp.gif";
 
 var NORMAL_DETAIL_IMG = p + "images/icon/toolbar/nDetail.gif";
 var DETAIL_IMG_ON_OVER = p + "images/icon/toolbar/oDetail.gif";
 
/*      daho modified 14/09/2004        */
 var NORMAL_DOWNLOAD_IMG = p + "images/icon/toolbar/nSaveAs.gif";
 var DOWNLOAD_IMG_ON_OVER = p + "images/icon/toolbar/oSaveAs.gif";
/*      daho modified 14/09/2004        */

 var NORMAL_EDIT_IMG = p + "images/icon/toolbar/nEdit.gif";
 var EDIT_IMG_ON_OVER = p + "images/icon/toolbar/oEdit.gif";
 
 var NORMAL_LOV_IMG = p + "images/icon/lov/nLov.gif";
 var LOV_IMG_ON_OVER = p + "images/icon/lov/oLov.gif";

 var NORMAL_SEARCH_IMG = p + "images/icon/search/nSearch.gif";
 var SEARCH_IMG_ON_OVER = p + "images/icon/search/oSearch.gif";
  
// Images for Navigator

 var NORMAL_FIRSTREC_IMG = p + "images/icon/navigator/nFirstrecord.gif";
 var FIRSTREC_IMG_ON_OVER = p + "images/icon/navigator/oFirstrecord.gif";

 var NORMAL_PREVREC_IMG = p + "images/icon/navigator/nPreviousrecord.gif";
 var PREVREC_IMG_ON_OVER = p + "images/icon/navigator/oPreviousrecord.gif";

 var NORMAL_NEXTREC_IMG = p + "images/icon/navigator/nNextrecord.gif";
 var NEXTREC_IMG_ON_OVER = p + "images/icon/navigator/oNextrecord.gif";

 var NORMAL_LASTREC_IMG = p + "images/icon/navigator/nLastrecord.gif";
 var LASTREC_IMG_ON_OVER = p + "images/icon/navigator/oLastrecord.gif";

// images for menu 
var NORMAL_MENU_CLOSE = p + "images/icon/menu/nClose.gif";
var OVER_MENU_CLOSE 		= p + "images/icon/menu/oClose.gif";
var NORMAL_MENU_HELP 	= p + "images/icon/menu/nHelp.gif";
var OVER_MENU_HELP 			= p + "images/icon/menu/oHelp.gif";

 // Images for Tree
 
 var BASE_IMG 		= p + "images/icon/tree/base.gif";
 var PLUS_IMG 		= p + "images/icon/tree/plus.gif";
 var PLUSBOTTOM_IMG = p + "images/icon/tree/plusbottom.gif";
 var MINUS_IMG 		= p + "images/icon/tree/minus.gif"; 
 var MINUSBOTTOM_IMG= p + "images/icon/tree/minusbottom.gif";
 var FOLDER_IMG 	= p + "images/icon/tree/folder.gif";
 var FOLDEROPEN_IMG = p + "images/icon/tree/folderopen.gif";
 var JOIN_IMG 		= p + "images/icon/tree/join.gif"; 
 var JOINBOTTOM_IMG = p + "images/icon/tree/joinbottom.gif";
 var LINE_IMG 		= p + "images/icon/tree/line.gif"; 
 var EMPTY_IMG		= p + "images/icon/tree/empty.gif";
 var WEBPAGE_IMG = p + "images/icon/tree/webpage.gif";
 var DOCUMENT_IMG = p + "images/icon/tree/page.gif"; 
